package com.example.springbott.mapper;

import com.example.springbott.bean.MarketPermission;
import com.example.springbott.bean.MarketPermissionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketPermissionMapper {
    long countByExample(MarketPermissionExample example);

    int deleteByExample(MarketPermissionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketPermission record);

    int insertSelective(MarketPermission record);

    List<MarketPermission> selectByExample(MarketPermissionExample example);

    MarketPermission selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketPermission record, @Param("example") MarketPermissionExample example);

    int updateByExample(@Param("record") MarketPermission record, @Param("example") MarketPermissionExample example);

    int updateByPrimaryKeySelective(MarketPermission record);

    int updateByPrimaryKey(MarketPermission record);

    List<String> selectPermission(@Param("roleId") Integer[] roleId);

    List<String> selectPermissions(@Param("roleIds") Integer[] roleIds);

    List<String> selectApi(@Param("permissions") List<String> permissions);

    List<String> selectApiAll();

    List<String> selectAllPermission();
}